import { http } from '@/server'
import type { HttpResponsePending } from '@/server/interface'
import type { WxConfig } from './wx.interface'

/** 获取wx配置信息 */
export const wxConfigApi = (url: string): HttpResponsePending<WxConfig> =>
    http.get(`/oauth/jssdk-config`, {
        headers: {
            ['X-Site-Url']: url,
        },
    })
